<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-1.8.3.js" type="text/javascript"></script>
</head>
<body>
<form id="f">
    用户名:<input type="text" name="name"/><br>
    密码:<input type="text" name="password"/><br>
    <input type="button" id="commit" value="提交">
</form>
</body>
<script>
    $("#commit").click(function () {
        $.ajax({
            type: "POST",
            data: $("#f").serialize(),
            url: "adminSerial",
            success: function (res) {
                console.log(res);
            }
        })
    })
</script>
</html>
